import { LAYOUT } from '@/router/constants';
import { AppRouteRecordRaw } from '@/types/router';

const system: AppRouteRecordRaw = {
  orderBy: 100000,
  name: 'System',
  path: '/system',
  redirect: '/system/menu',
  component: LAYOUT,
  meta: {
    title: '系统管理',
    icon: 'code'
  },
  children: [
    {
      path: 'menu',
      name: 'SystemMenu',
      component: () => import('@/views/system/menu/index.vue'),
      meta: {
        title: '菜单管理',
        icon: 'code'
      }
    },
    {
      path: 'role',
      name: 'SystemRole',
      component: () => import('@/views/system/role/index.vue'),
      meta: {
        title: '角色管理',
        icon: 'code'
      }
    },
    {
      path: 'user',
      name: 'SystemUser',
      component: () => import('@/views/system/user/index.vue'),
      meta: {
        title: '用户管理',
        icon: 'code'
      }
    }
  ]
};

export default system;
